package com.hzncc.flowable_diboot.contract.vo;

import com.diboot.core.binding.annotation.BindDict;
import com.diboot.core.binding.annotation.BindField;
import com.diboot.core.vo.LabelValue;
import com.diboot.iam.entity.IamUser;
import com.hzncc.flowable_diboot.contract.entity.ContractExt;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
/**
* 合同扩展信息 VO定义
* @author MyName
* @version 1.0
* @date 2024-08-23
* Copyright © MyCorp
*/
@Getter @Setter @Accessors(chain = true)
public class ContractExtListVO extends ContractExt  {
private static final long serialVersionUID = 1265979879279767110L;


    @BindDict(
            type = "deliveryTime",
            field = "deliveryTime"
    )
    private LabelValue deliveryTimeLabel;

    /**
    * 全款合同状态 关联字典选项
    */
    @BindDict(
    type = "fullPayStatus",
    field = "fullPayStatus"
    )
    private LabelValue fullPayStatusLabel;

    /**
    * 全款付款期限 关联字典选项
    */
    @BindDict(
    type = "fullPayDeadline",
    field = "fullPayDeadline"
    )
    private LabelValue fullPayDeadlineLabel;

    /**
    * 二次付款合同状态 关联字典选项
    */
    @BindDict(
    type = "secondPayStatus",
    field = "secondPayStatus"
    )
    private LabelValue secondPayStatusLabel;

    /**
    * 三次付款合同状态 关联字典选项
    */
    @BindDict(
    type = "thirdPayStatus",
    field = "thirdPayStatus"
    )
    private LabelValue thirdPayStatusLabel;

    /**
    * 创建人 关联信息
    */

    @BindField(
        entity = IamUser.class,
        field = "realname",
        condition = "this.create_by = id"
     )
    private String createByLabel;

    /**
    * 更新人 关联信息
    */

    @BindField(
        entity = IamUser.class,
        field = "realname",
        condition = "this.update_by = id"
     )
    private String updateByLabel;

}